#ifndef DT2821A_H
#define DT2821A_H
#include "../../ecs/entity.h"
#include "../roundpinentity.h"
#include <QSharedPointer>

class DT2821A: public Entity
{
    Q_OBJECT

public:
    DT2821A(QGraphicsItem* parent = nullptr);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
    QRectF boundingRect() const override;

    void initConnections();

private:
    QSizeF mSize;
    int ma, mb, mc, md, me, mf, mg;
    QPainterPath mpa1, mpb1, mpc1, mpd1, mpe1, mpf1, mpg1, mpa2, mpb2, mpc2, mpd2, mpe2, mpf2, mpg2;
    QList<QSharedPointer<RoundPinEntity>> mpins;
};

#endif // DT2821A_H
